import 'package:bt_dsp_88/model/model_extension.dart';
import 'package:bt_dsp_88/model/model_send.dart';
import 'package:flutter_kit_plus/flutter_kit.dart';

import '../model/model.dart';

void share(GlobalModel model) {
  // EasyLoading.show(status: 'Please waiting...', dismissOnTap: false);
  var copy = model.copy;

  ///封装数据
  copy.getData();
  var date = copy.date.replaceAll(' ', '-');
  shareFile('DSP88BT.DSP', copy.data);
}

///临时测试分享
Future<void> tempshare(String content) async {
  String filename = 'testlog';
  shareFile('testlog', content);
}
